package org.lyq.erp.config.listener;

import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * 
* @ClassName: ListenerConfig
* @Description: 加入监听器
* @author LQY(廖先生)
* @date 2018年1月5日 下午4:27:59
*
 */
@Configuration
public class ListenerConfig {
	@Bean
	public ServletListenerRegistrationBean<ContextListener> servletListenerRegistrationBean() {
		ServletListenerRegistrationBean<ContextListener> slrBean = new ServletListenerRegistrationBean<ContextListener>();
		slrBean.setListener(new ContextListener());
		return slrBean;
	}
}